package com.zking.ssm.DYM.service.impl;

import com.zking.ssm.DYM.mapper.HotelCouponsMapper;
import com.zking.ssm.DYM.model.HotelCoupons;
import com.zking.ssm.DYM.service.IHotelCouponsService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author XXXXX
 * @Date 2021/01/23 8:42
 */
@Service
public class HotelCouponsServiceImpl implements IHotelCouponsService {
    @Autowired
    private HotelCouponsMapper hotelCouponsMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelCouponsMapper.deleteByPrimaryKey(1L);
    }

    @Override
    public int insert(HotelCoupons record) {
        return hotelCouponsMapper.insert(record);
    }

    @Override
    public HotelCoupons selectByPrimaryKey(Long id) {
        return hotelCouponsMapper.selectByPrimaryKey(1L);
    }

    @Override
    public int updateByPrimaryKey(HotelCoupons record) {
        return hotelCouponsMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelCoupons> list(HotelCoupons record, PageBean pageBean) {
        List<HotelCoupons> hotelCouponsList = hotelCouponsMapper.list(record);
        return hotelCouponsList;
    }
}
